package com.wish.blessingroad.common;

import java.time.LocalDate;
import java.time.LocalTime;

/**
 * TODO:DOCUMENT ME!
 *
 * @author DongHaocheng
 * @date 2019/3/18
 */
public class RedisKey {
    /**
     * 祝福值排行zadd 用户id
     */
    public static String RANKING_LIST_USER = "xxx_ranking_list";

    /**
     * 邀请 用户id
     */
    public static String getInvite(String userId) {
        return String.format("xxx_invite_user_%s", userId);
    }

    /**
     * token
     */
    public static String getAccessToken(String openId) {
        return String.format("xxx_access_token_%s", openId);
    }

    /**
     * 获取openid
     */
    public static String getOpenId(String userId) {
        return String.format("xxx_openid_user_%s", userId);
    }

    /**
     * 获取userid
     */
    public static String getUserId(String openId) {
        return String.format("xxx_user_get_%s", openId);
    }
}
